package com.tang.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Tang
 * @classname JwtAuthorizationConfig
 * @description [  ]
 * @date 2021/5/8 23:33
 */
@Component
@Data
public class JwtAuthorizationConfig {

    @Value(value = "${security.jwt.url.prefix}")
    private List<String> prefix;

    @Value(value = "${security.jwt.url.suffix}")
    private List<String> suffix;

    @Value("${security.jwt.header:RefreshToken}")
    private String refreshToken;

    @Value("${security.jwt.expiration:#{3*24*60*60}}")
    private int expiration;

    @Value("${security.jwt.refreshExpiration:#{90*24*60*60}}")
    private int refreshExpiration;

    @Value("${security.jwt.secret:yrfeifrjohgh}")
    private String secret;

    @Value("${security.jwt.role:authorizes}")
    private String authorizes;

    @Value("${security.jwt.user.info:info}")
    private String info;

}